import request from '@/utils/request'

// 查询仓库店铺关系列表
export function listBiShopWarehouseRelation(query) {
  return request({
    url: '/conf/BiShopWarehouseRelation/list',
    method: 'get',
    params: query
  })
}
// 查询仓库店铺关系列表
export function getwarehouselist(query) {
  return request({
    url: '/product/jushuitang/getwarehouselist',
    method: 'get',
    params: query
  })
}

// 查询仓库店铺关系详细
export function getBiShopWarehouseRelation(id) {
  return request({
    url: '/conf/BiShopWarehouseRelation/' + id,
    method: 'get'
  })
}

// 新增仓库店铺关系
export function addBiShopWarehouseRelation(data) {
  return request({
    url: '/conf/BiShopWarehouseRelation',
    method: 'post',
    data: data
  })
}

// 修改仓库店铺关系
export function updateBiShopWarehouseRelation(data) {
  return request({
    url: '/conf/BiShopWarehouseRelation',
    method: 'put',
    data: data
  })
}

// 删除仓库店铺关系
export function delBiShopWarehouseRelation(id) {
  return request({
    url: '/conf/BiShopWarehouseRelation/' + id,
    method: 'delete'
  })
}
